<template>
	<view>
		<!-- <eventSource @message="onMessage"/> -->
		<view class="mobile-item-container">
			<view style="font-size: 40rpx; font-weight: bold; padding: 0 0 40rpx 0;">入库</view>
			<view style="padding: 20rpx 0;">
				<u-grid col="3" style="align-items: start;">
					<u-grid-item @click="navigateTo('/pages/work/inbound/boxInfoUpdate')">
						<text class="iconfont">&#xe702;</text>
						<text class="btn-text" style="text-align: center;">箱内资料</br>更新</text>
					</u-grid-item>
					<u-grid-item @click="navigateTo('/pages/work/inbound/manualBindIn')">
						<text class="iconfont">&#xe702;</text>
						<text class="btn-text" style="text-align: center;">异常箱绑定</text>
					</u-grid-item>
				</u-grid>
			</view>
		</view>
		<Gap />
		<view class="mobile-item-container">
			<view style="font-size: 40rpx; font-weight: bold; padding: 0 0 40rpx 0;">库存管理</view>
			<view style="padding: 20rpx 0;">
				<u-grid col="3" style="align-items: start;">
					<u-grid-item @click="navigateTo('/pages/work/inStore/checkBox')">
						<text class="iconfont">&#xe702;</text>
						<text class="btn-text">查询料箱</text>
					</u-grid-item>
					<u-grid-item @click="navigateTo('')">
						<text class="iconfont">&#xe702;</text>
						<text class="btn-text">管理台车</br>绑定关系</text>
					</u-grid-item>
					<u-grid-item @click="navigateTo('/pages/work/inStore/mergeBox')">
						<text class="iconfont">&#xe702;</text>
						<text class="btn-text">合箱</text>
					</u-grid-item>
					<u-grid-item @click="navigateTo('/pages/work/inStore/check')">
						<text class="iconfont">&#xe702;</text>
						<text class="btn-text">盘点</text>
					</u-grid-item>
				</u-grid>
			</view>
		</view>
		<Gap />
		<view class="mobile-item-container">
			<view style="font-size: 40rpx; font-weight: bold; padding: 0 0 40rpx 0;">出库</view>
			<view style="padding: 20rpx 0;">
				<u-grid col="3" style="align-items: start;">
					<u-grid-item @click="navigateTo('/pages/work/outbound/AGVportChange')">
						<text class="iconfont">&#xe702;</text>
						<text class="btn-text" style="text-align: center;">AGVport口</br>模式切换</text>
					</u-grid-item>
					<u-grid-item @click="navigateTo('/pages/work/outbound/manual')">
						<text class="iconfont">&#xe702;</text>
						<text class="btn-text">人工搬运</br>出库确认</text>
					</u-grid-item>
					<u-grid-item @click="navigateTo('/pages/work/outbound/confirmCar')">
						<text class="iconfont">&#xe702;</text>
						<text class="btn-text" style="text-align: center;">确认台车</br>到位</text>
					</u-grid-item>
				</u-grid>
				<u-grid>
					<u-grid-item @click="navigateTo('/pages/work/outbound/ncmOutboundOrder')">
						<text class="iconfont">&#xe702;</text>
						<text class="btn-text" style="text-align: center;">超标物料</br>出库单</text>
					</u-grid-item>
				</u-grid>
			</view>
		</view>
		<Gap />
		<view class="mobile-item-container">
			<view style="font-size: 40rpx; font-weight: bold; padding: 0 0 40rpx 0;">超标物料管理</view>
			<view style="padding: 20rpx 0;">
				<u-grid col="3" style="align-items: start;">
					<u-grid-item @click="navigateTo('/pages/work/ncmm/ncmmScan')">
						<text class="iconfont">&#xe702;</text>
						<text class="btn-text" style="text-align: center;">超标物料</br>扫码</text>
					</u-grid-item>
					<!-- <u-grid-item @click="navigateTo('/pages/work/ncmm/ncmmManualIn')">
						<text class="iconfont">&#xe702;</text>
						<text class="btn-text" style="text-align: center;">超标物料</br>手动入库</text>
					</u-grid-item> -->
					<u-grid-item @click="navigateTo('/pages/work/ncmm/ncmmOut')">
						<text class="iconfont">&#xe702;</text>
						<text class="btn-text" style="text-align: center;">超标物料</br>出库</text>
					</u-grid-item>
					<u-grid-item @click="navigateTo('/pages/work/ncmm/ncmmBack')">
						<text class="iconfont">&#xe702;</text>
						<text class="btn-text" style="text-align: center;">超标物料</br>回库</text>
					</u-grid-item>
				</u-grid>
				<!-- <u-grid col="3" style="align-items: start;">
					
				</u-grid> -->
			</view>
		</view>
		<scan-code></scan-code>
	</view>
</template>

<script>
	import Gap from '@/components/gap/Gap'
	import scanCode from "@/components/scanCode/scan-code.vue"
	// import eventSource from '../../components/personal/event-source.vue'

	export default {
		components: {
			Gap,
			scanCode
			// eventSource
		},
		data() {
			return {
			}
		},
		mounted() {
			// // #ifdef APP-PLUS
			// this.getDeviceMac()
			// // #endif
		},
		methods: {
			navigateTo(url) {
				uni.navigateTo({
					url: url
				})
			}	
			// onMessage() {
			// 	console.log("sse消息：",e)
			// }
			// getDeviceMac() {
			// 	const net = plus.android.importClass("java.net.NetworkInterface")
			// 	const wl0 = net.getByName('wlan0')
			// 	const macByte = wl0.getHardwareAddress()
			// 	const str = ''
			// 	for (let i = 0; i < macByte.length; i++) {
			// 		const tmp = ""
			// 		const num = macByte[i]
			// 		if (num < 0) {
			// 			tmp =(255+num+1).toString(16)
			// 		} else {
			// 			tmp = num.toString(16)
			// 		}
			// 		if (tmp.length == 1) {
			// 			tmp = "0" + tmp
			// 		}
			// 		str += tmp
			// 	}
			// 	console.log(str)
			// 	this.$store.commit('SET_MAC_ADDRESS', str)
			// },
		}
	}
</script>

<style>
	@import '@/common/icon/iconfont.css'
</style>